package com.gonsin.gview.annotations.interfaces;

import com.gonsin.gview.annotations.GContext;
import com.gonsin.base.GPageRequest;
import com.gonsin.base.GPageResult;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 下拉选择数据源
 */
public interface ITableDataPicker<T, S> {

    /**
     * 下拉框的数据源
     */
    GPageResult<T> getTableData(GContext context, String dataId, S searchPo, GPageRequest pageRequest, HttpServletRequest request, Map<String, String> props);
}
